/**
 * 作者:李杰
 * email: maillijie@gmail.com
 */
package com.javainfo.dao;

import java.util.Date;

import com.javainfo.dao.inf.SubArticleDaoIf;
import com.javainfo.entity.SubArticle;

/**
 * @author Lijie
 *
 */
public class SubArticleDao extends BaseDao<SubArticle> implements SubArticleDaoIf{
	@Override
	public void add(SubArticle obj) {
		Date date = new Date();
		obj.setCreateTime(date);
		obj.setUpdateTime(date);
		super.add(obj);
	}
	@Override
	public void update(SubArticle obj) {
		Date date = new Date();
		obj.setUpdateTime(date);
		super.update(obj);
	}
}
